package data.nanjing.expo.models.domain;


import data.nanjing.expo.common.Util;

import java.util.Date;

public class WebSourceManage {
    private int id;
    private String sourceType;
    private String classify;
    private String sourceName;
    private String sourceKey;
    private Date createTime;
    private Date updateTime;
    private String sourceRemark;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    public String getClassify() {
        return classify;
    }

    public void setClassify(String classify) {
        this.classify = classify;
    }

    public String getSourceName() {
        return sourceName;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    public String getSourceKey() {
        return Util.getFinalFilePath(sourceKey);
    }

    public void setSourceKey(String sourceKey) {
        this.sourceKey = sourceKey;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getSourceRemark() {
        return sourceRemark;
    }

    public void setSourceRemark(String sourceRemark) {
        this.sourceRemark = sourceRemark;
    }

    @Override
    public String toString() {
        return "WebSourceManage{" +
                "id=" + id +
                ", sourceType='" + sourceType + '\'' +
                ", classify='" + classify + '\'' +
                ", sourceName='" + sourceName + '\'' +
                ", sourceKey='" + sourceKey + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", sourceRemark='" + sourceRemark + '\'' +
                '}';
    }

}
